// 集中管理路由对应关系数据包
// 实现菜单、路由两者的关联复用
import Article from "@/views/course/article";
import Category from "@/views/course/category";
import DashBoard from "@/views/dashboard";
import {
  DesktopOutlined,
  FileOutlined,
  PieChartOutlined,
  TeamOutlined,
  UserOutlined,
} from "@ant-design/icons";

export const mainRoutes = [
  {
    key: "/dashboard",
    label: "数据统计",
    title: "数据统计",
    icon: <PieChartOutlined />,
    element: <DashBoard />,
  },
  {
    key: "/course",
    label: "课程管理",
    title: "课程管理",
    icon: <FileOutlined />,
    children: [
      {
        key: "/course/category",
        label: "课程分类",
        title: "课程分类",
        icon: <DesktopOutlined />,
        element: <Category />,
      },
      {
        key: "/course/article",
        label: "图文课程",
        title: "图文课程",
        icon: <TeamOutlined />,
        element: <Article />,
      },
    ],
  },
];
